package com.cloudbroker.bcs.common.validatioin.validator;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.cloudbroker.bcs.common.validatioin.annotation.Identity;

public class RichTextValidator implements ConstraintValidator<Identity, Object> {
    
    @SuppressWarnings("unused")
    private static final Logger LOGGER = LoggerFactory.getLogger(RichTextValidator.class);
    
    @Override
    public void initialize(Identity constraintAnnotation) {
    }
    
    @Override
    public boolean isValid(Object value, ConstraintValidatorContext context) {
        value = "1111";
        return true;
    }
    
}
